package com.sheep.jucdemo.part3.part3_1;

import java.util.Random;

/**
 * @Date 2022/4/17 20:03
 * @Created by sheep
 */
public class Test3_1_1 {
    public static void main(String[] args) {
        // 创建一个随机数生成器
        Random random = new Random();
        // 输出10个在0~5（包含0，不包含5）之间的随机数
        for (int i = 0; i < 10; i++) {
            System.out.println(random.nextInt(5));
        }
    }
}
